<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page pageEncoding="UTF-8"%>
<!doctype html>
<html lang="zh-cmn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="bootstrap.css">
</head>
<body>
    <div class="container">
        <div class="panel panel-default">
            <div class="panel-heading">
                查询条件
            </div>
            <div class="panel-body">
                <form action="searchProvider.action" class="form-inline">
                    <div class="form-group">
                        供应商名称：<input type="text" name="proname" class="form-control">
                    </div>
                    <div class="form-group">
                        <input type="submit" value="查询" class="btn btn-primary" value="${param.proname}">
                    </div>
                </form>
            </div>
            <table class="table table-bordered table-striped">
                <tr>
                    <td>编号</td>
                    <td>代号</td>
                    <td>名称</td>
                    <td>联系人</td>
                    <td>电话</td>
                </tr>
                <c:forEach items="${list}" var="p">
                    <tr>
                        <td>${p.id}</td>
                        <td>${p.procode}</td>
                        <td>${p.proname}</td>
                        <td>${p.procontact}</td>
                        <td>${p.prophone}</td>
                    </tr>
                </c:forEach>
            </table>
        </div>

    </div>
</body>
</html>